<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="x-ua-compatible" content="ie=7" />
		<title>角色管理</title>
		<script type='text/javascript' src='../../dwr/engine.js'></script>
		<script type='text/javascript' src='../../dwr/util.js'></script>
		<script type='text/javascript' src='../../dwr/interface/ConfigAction.js'></script>
		<script src="../js/zjpii_common.js"></script>
		<script src="../js/acl_util.js"></script>
		<script src="../js/aclrole.js"></script>
		<script type="text/javascript" src="../components/drag-drop-folder-tree/js/context-menu.js"></script>
		<script type="text/javascript" src="../components/drag-drop-folder-tree/js/drag-drop-folder-tree.js"></script>
		<link rel="stylesheet" href="../components/drag-drop-folder-tree/css/drag-drop-folder-tree.css" type="text/css"></link>
		<link rel="stylesheet" href="../components/drag-drop-folder-tree/css/context-menu.css" type="text/css"></link>
		<link href="../themes/default/css/config.css" rel="stylesheet" type="text/css">
	</head>
	<body onload="loadAclroleList();">
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" >
		<tr >
			<td valign="top" height="100%">
				<!--left begin-->
				<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
					<tr>
						<td height="100%">
							<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="table">
								<tr>
									<th  align="left" colspan="2"><h3><img src="../themes/default/images/Contacts.gif" width="16" height="16">角色管理</h3></th>
								</tr>
								<tr>
								  <td width='35%'>角色编号:</td>
								  <td><input type="text" name="oJSRoleSearchBean.rolebh" class="input" onblur="this.className='pass';" onfocus="this.className='lave';"></td>
								</tr>
								<tr>
								  <td>角色名称:</td>
								  <td><input type="text" name="oJSRoleSearchBean.rolename" class="input" onblur="this.className='pass';" onfocus="this.className='lave';"></td>
								</tr>
								<tr>
			                        <td style="padding-bottom: 2px;" colspan="2">
				                        <input type="button" name="search" class="button" value="查询" onclick="loadAclroleList();">
				                        <input type="button" name="add" class="button" value="新增角色" onclick="roleOpInit();">
				                        <input type="button" name="del" class="button" value="删除" onclick="return deleteRole();">
			                        </td>
			                    </tr>
								<tr>
									<td height ="80%" colspan="2">
										<div id="rolelist" style="FONT-SIZE: 12px; OVERFLOW: auto; WIDTH: 300px; HEIGHT:100%">
			                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="table_role_query">
			                                	<colgroup>
													<col id="col1_1"></col>
													<col id="col1_2"></col>
													<col id="col1_3"></col>
												</colgroup>
			                                	<thead>
											        <tr> 
											          <td width="20%" align="center" valign="middle"><input type="checkbox" name="rolechkall" onclick="chooseAll('rolechkbox')" class="checkbox">全选</td>
											          <td width="60%" align="center" valign="middle">编号&角色</td>
											          <td width="20%" align="center" valign="middle">操作</td>
				        							</tr>
			        							</thead>
			  									<tbody id="role_table"></tbody>
			  								</table>
  						  					<div id="role_page_div"></div>
										</div>
									</td>
								</tr>
								<tr>
								  <td>&nbsp;</td>
								  <td>&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<!--left end-->
			</td>
			<td valign="top" align="left" width="100%" height="100%">
				<div id="roledetail"></div>
			</td>
		</tr>
	</table>
	
<!--next html is hidden -->
<!-- edit detail -->
<div id="div_roleop_hidden" style="display:none">
	<!-- button begin -->
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
			<td style="padding-bottom: 2px;" id="op_button">
				<input title="Save [Alt+S]" accessKey="S" class="button"  onclick="return saveRole();" type="button" name="add" value="  保存  " > 
				<input title="Close [Alt+C]" accessKey="C" class="button" onclick="setRoledetail('');" type="button" name="cencel" value="  关闭  "></td>
			<td align="right" nowrap><span class="required">*</span> 必需</td>
			<td align='right'></td>
		</tr>
	</table>
	<!-- button end -->
	<!-- op_html begin -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
					<tr>
						<th align="left" colspan="4"><h3 id="roleop_title"><img src="../themes/default/images/Contacts.gif" width="16" height="16">添加角色</h3></th>
					</tr>
					<tr>
						<td  width='15%'>角色名称:</td>
						<td  width='35%'><input type="text" name="rolename" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"> <span class="required">*</span></td>
						<td  width='15%'>角色编码:</td>
						<td><input type="text" name="rolebh" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"></td>
					</tr>
					<tr>
						<td>备注 :</td>
						<td colspan="3"><textarea type="text" name="remark" cols="52" rows="3" class="input" onblur="this.className='pass';" onfocus="this.className='lave';"></textarea></td>
					</tr>
					<tr>
					  <td >&nbsp;</td>
					  <td >
				          <input type="hidden" name="id">
					  </td>
					  <td >&nbsp;</td>
					  <td >&nbsp;</td>
					</tr>
					<tr>
						<td colspan="4"><div id="menuresource_tree">资源树</div></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<!-- op_html end -->
</div>

<!-- query role2user begin -->
<div id="div_userrelarole_hidden" style="display:none">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
					<tr>
						<th align="left" colspan="4"><h3><img src="../themes/default/images/Contacts.gif" width="16" height="16">角色用户信息</h3></th>
					</tr>
					<tr>
						<td  width='15%'>登入帐号:</td>
						<td  width='30%'><input type="text" name="oJSUserRoleFormBean.account" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"></td>
						<td  width='15%'>用户名称:</td>
						<td><input type="text" name="oJSUserRoleFormBean.realname" class="input" onblur="this.className='pass';" onfocus="this.className='lave';" size="25"></td>
					</tr>
					<tr>
					  <td >&nbsp;</td>
					  <td >
					  	<input type="hidden" name="oJSUserRoleFormBean.roleid">
		    			<input type="hidden" name="oJSUserRoleFormBean.rolename">
					  </td>
					  <td >&nbsp;</td>
					  <td >&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>
	  </table>
		<br>
	  	<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td style="padding-bottom: 2px;">
					<input title="Search [Alt+S]" accessKey="S" class="button"  onclick="loadAcluserByAclrole();" type="button" name="search" value="  查询  " >
					<input title="Reset [Alt+R]" accessKey="R" class="button"  type="reset" name="reset" value="  重置  " >
					<input title="Add [Alt+A]" accessKey="A" class="button"  onclick="openUserQueryHtml();" type="button" name="add" value="  关联用户  " >
					<input title="Delete [Alt+D]" accessKey="D" class="button"  onclick="return deleteRoleRelaUser();" type="button" name="add" value=" 移除用户  " >
					<input title="Close [Alt+C]" accessKey="C" class="button" onclick="setRoledetail('');" type="button" name="cencel" value="  关闭  "></td>
				<td align='right'></td>
			</tr>
		</table>
		<div id="roleuser_page_div" align="right"></div>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="table_roleuser_query">
			<colgroup>
				<col id="col2_1"></col>
				<col id="col2_2"></col>
				<col id="col2_3"></col>
				<col id="col2_4"></col>
				<col id="col2_5"></col>
				<col id="col2_6"></col>
			</colgroup>
			<thead>
				<tr class="list_title"> 
					<td width="10%" align="center" valign="middle"><input type="checkbox" name="roleuserchkall" onclick="chooseAll('roleuserchkbox')" class="checkbox">全选</td>
					<td width="20%" align="center" valign="middle">登入帐号</td>
					<td width="20%" align="center" valign="middle">用户名称</td>
					<td width="10%" align="center" valign="middle">用户状态</td>
					<td width="20%" align="center" valign="middle">所属角色</td>
					<td width="20%" align="center" valign="middle">操作</td>
				</tr>
			</thead>
			<tbody id="roleuser_table"></tbody>
		</table>
</div>
<!-- query role2user end -->

<!-- edit detail -->
<div id="div_hidden_edit" style="display:none">
	<input title="Save [Alt+S]" accessKey="S" class="button"  onclick="return saveRole();" type="button" name="edit" value="  保存  " > 
	<input title="Cancel [Alt+C]" accessKey="C" class="button" onclick="setRoleDetailHtml();" type="button" name="cencel" value="  取消  ">
</div>
<div id="div_hidden_detail" style="display:none">
	<input title="Edit [Alt+E]" accessKey="E" class="button"  onclick="setRoleEditHtml();" type="button" name="edit" value="  编辑  " > 
	<input title="Close [Alt+C]" accessKey="C" class="button" onclick="setRoledetail('');" type="button" name="cencel" value="  关闭  ">
</div>
	</body>
</html>
